<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Search.Master" Inherits="System.Web.Mvc.ViewPage<Complaint.Models.Dtos.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <title>Search complaints</title>
    <meta name="description" content="search for complaints on icomplain" />
    <meta name="keywords" content="search,complaints,advanced search" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideContent" runat="server">

    <script src="<%=Url.Content("~/Scripts/Complaint/Views.Search.js")%>" type="text/javascript"></script>

    <h2>
        Advanced search</h2>
    <% using (Html.BeginForm())
       { %>
    <fieldset>
        <legend>Search form</legend>
        <div>
            <label for="keywords">
                Keywords:</label>
            <%= Html.TextBox("keywords")%>
            <%= Html.ValidationMessage("keywords")%>
        </div>
        <div>
            <label for="dateFrom">
                From Date:</label>
            <%= Html.TextBox("dateFrom")%>
        </div>
        <div>
            <label for="dateTo">
                To Date:</label>
            <%= Html.TextBox("dateTo")%>
        </div>
        <% Html.RenderPartial("Category", Model); %>
        <p>
            <button id="search" type="button" class="formbutton">
                Search</button>
        </p>
    </fieldset>
    <%} %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="resultGrid">
    </div>
</asp:Content>
